﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebEntities.Models.WebInfo
{
    public class IndexADImg
    {
        public int ImgID { get; set; }
        public string ImgName { get; set; }
        public string ImgUrl { get; set; }
        public int SortNum { get; set; }

        public static IndexADImg AsIndexAdImg(WI_IndexADImg wiadimg)
        {
            IndexADImg adimg = new IndexADImg
            {
                ImgID = wiadimg.ImgID,
                ImgName = wiadimg.ImgName,
                ImgUrl = wiadimg.ImgUrl,
                SortNum = wiadimg.SortNum ?? 0
            };
            return adimg;
        }
    }
}
